

package jetbrains.buildServer.server.rest.util.fieldInclusion;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.jetbrains.annotations.NotNull;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
public @interface FieldStrategy {
  @NotNull
  String name();

  @NotNull
  FieldRule defaultForShort() default FieldRule.INCLUDE_NON_DEFAULT;

  @NotNull
  FieldRule defaultForLong() default FieldRule.INCLUDE_NON_DEFAULT;
}